package object;

public class Course {
    private String name;
    private String location;
    private String time;
    private Teacher teacher;

    public Course(int id, String name, String location, String time, Teacher teacher) {
        this.name = name;
        this.location = location;
        this.time = time;
        this.teacher = teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public String getName() {
        return name;
    }

    public String getLocation() {
        return location;
    }

    public String getTime() {
        return time;
    }
}
